package cn.ywang.pattern.strategy;

/**
 * 公交出行
 *
 * @author BeatificWang
 * @date 2019/3/15 22:50
 */
public class BusStrategy implements TripStrategy {
	@Override
	public void doTrip(double distance) {
		System.out.println("公交车，时速50公里");
		System.out.println("目标行程：" + distance + "公里");
		System.out.println("本次出行预计耗时：" + distance / 50 + "小时");
	}
}
